import request from "@/request";
export const getCategoryList = (limit=15)=>request.get("/product/getBaseCategoryList",{
    params:{
        limit
    }
});
//http://127.0.0.1:9292/api/product/top/:type?limit=4
export const getBankList = (type=1,limit=4)=>request.get(`product/top/${type}`,{
    params:{
        limit
    }
});
//http://127.0.0.1:9292/api/likeList?pageNo=1&pageSize=6
export const getLikeList = (pageNo=1,pangSize=6)=>request.get("likeList",{
    params:{
        pageNo,
        pangSize
    }
});
//http://127.0.0.1:9292/api/product/trademark/:limit
export const getBrandList = (limit=10)=>request.get(`/product/trademark/${limit}`);
//http://zhangpeiyue.com:9292/api/product/searchList
export const postSearch = (data)=>request.post(`/product/searchList`,data);
//获取商品详情信息
export const getGoodsInfoById = id =>request(`/product/item/${id}`)
